﻿<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="web" uri="http://meerkat.qunar.com/web"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/views/site/inc/head.jsp" %>
<body>
<!--Placeholder:Public Header-->
<div class="container">
    <%@include file="/WEB-INF/views/site/inc/top.jsp" %>

    <div class="panel competitor_panel">
        <div class="column competitor">
            <form action="vote.htm" method="get" id="voteForm">
            <div class="ops"><label>搜索您喜欢的选手（姓名、报名序号皆可）</label>
                <input name="name" type="text" class="textbox"  value="${name}"/>
                <input type="submit" id="btn_search" class="btn_search" value="" />
            </div>         </form>
            <div class="content min-height">
                <ul class="list clr_after">
                    <c:forEach var="item" items="${lstObj.beans}">
                    <li>
                        <div class="avatar"><a href="competitor.htm?link=${item.link}"><img src="${item.avatar}" width="110" height="153" alt="" /><span class="border"></span></a></div>
                        <div class="info">
                            <dl>
                                <dt><a href="competitor.htm?link=${item.link}" class="name">${item.name}</a></dt>
                                <dd>编号：${item.inviteCode}</dd>
                                <dd>票数：<span class="hl" id="vc_${item.link}">${item.voteCount }</span></dd>
                            </dl>
                            <button class="btn_vote" id="btn_vote" name="${item.link}"><span class="hide">投票</span></button>
                        </div>
                    </li>
                    </c:forEach>
                </ul>
            </div>
            <div class="pager">
                <a href="vote.htm" class="disable">首页</a>
                <web:pageLinks
                    name="lstObj"
                    action="vote.htm"
                    rowProperty="row"
                    totalProperty="totalCount"
                    indexProperty="startIndex"
                    totalPageCount="totalPageCount"/>
                <span>${currentPageIndex}</span>/<span>${totalPageCount}</span>
                <a href="vote.htm?row=12&startIndex=${(totalPageCount -1) * 12 }">尾页</a> 
            </div>
        </div>
    </div>
    <div class="panel rule_panel">
        <div class="column rule">
            <h3>投票规则</h3>
            <div class="content">
                <ul>
                    <li>网友投票不需要注册会员，只需登录评选网站即可投票；</li>
                    <li>投票时间为2012年3月01日0：00至4月30日24:00；</li>
                    <li>点击页面下方“投票”按钮，提示“投票成功”；</li>
                    <li>禁止任何形式的刷票，如违反规则，将取消选手的参赛资格，同时将对作弊选手在评选网站上的个人展示信息进行除名，<br />
                        大赛组委会保留对作弊选手公开批评的权利。</li>
                </ul>
            </div>
        </div>
    </div>
</div>
<%@include file="/WEB-INF/views/site/inc/footer.jsp" %>
</body>
</html>
